home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
...taking it to the Macs!
/
...taking it to the Macs!.iso
/
Extras
/
ActiveX Mac SDK
/
ActiveX SDK
/
Container Common
/
dllinitialize.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-03
|
412b
|
21 lines
extern "C"
{
OSErr pascal DllInitializationRoutine(CFragInitBlockPtr initBlkPtr);
short gResFile; // Refnum of the plugin’s resource file
}
OSErr pascal
DllInitializationRoutine(CFragInitBlockPtr initBlkPtr)
{
// __initialize(initBlkPtr);
// open up the resource fork of the dll and save it off
gResFile = ::FSpOpenResFile(initBlkPtr->fragLocator.u.onDisk.fileSpec, fsRdPerm);
return noErr;
}